#include"search.hpp"
#include<iostream>
#include<string>

const std::string input = "data/clean_html/clean.txt";

int main()
{
    ns_search::Searcher* search = new ns_search::Searcher();

    search->InitSearch(input);

    std::string query;
    std::string json_string;

    while(true)
    {
        std::cout << "Please enter search keywords#";
        std::getline(std::cin, query);

        search->Search(query, &json_string);

        std::cout << json_string << std::endl;
    }

    return 0;
}